package com.stone.persistent.recyclerview.extensions;

import android.content.Context;
import android.content.res.Resources;

import org.jetbrains.annotations.NotNull;


public class ContextExtensions {

    public static  float dp2px(@NotNull Context context, float dpValue) {
        float scale = context.getResources().getDisplayMetrics().density;
        return dpValue * scale + 0.5F;
    }
}
